package com.library.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author myg
 * @since 2023-07-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user_info")
@ApiModel(value = "UserInfo")
public class UserInfo implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;

	private Long userId;

	private String email;
	@ApiModelProperty(value = "用户名")
	@ExcelProperty("用户名")
	private String userName;
	@ApiModelProperty(value = "姓名")
	@ExcelProperty("姓名")
	private String name;
	@ApiModelProperty(value = "企业或教育机构")
	@ExcelProperty("企业或教育机构")
	private String companyName;
	@ApiModelProperty(value = "密码")
	@ExcelProperty("密码")
	private String password;
	@ApiModelProperty(value = "手机号")
	@ExcelProperty("手机号")
	private String phone;
	@ApiModelProperty(value = "头像")
	@ExcelProperty("头像")
	private String photoUrl;
	@ApiModelProperty(value = "用户状态：1 启用  0 禁用")
	@ExcelProperty("用户状态：1 启用  0 禁用")
	private Integer status;

	private Date createTime;


	private String openId;
	@ApiModelProperty(value = "微信昵称")
	@ExcelProperty("微信昵称")
	private String wechatNick;
	@ApiModelProperty(value = "昵称")
	@ExcelProperty("昵称")
	private String nick;

	@ApiModelProperty(value = "用户主页背景")
	@ExcelProperty("用户主页背景")
	private String homepageUrl;
	@ApiModelProperty(value = "1 未认证   2 已认证  3 认证失败 ")
	@ExcelProperty("1 未认证   2 已认证  3 认证失败 ")
	private Integer isVerify;
	@ApiModelProperty(value = "关注用户数")
	@ExcelProperty("关注用户数")
	private Integer attention;
	@ApiModelProperty(value = "粉丝数")
	@ExcelProperty("粉丝数")
	private Integer fans;
	@ApiModelProperty(value = "收藏数")
	@ExcelProperty("收藏数")
	private Integer collect;
	@ApiModelProperty(value = "浏览量")
	@ExcelProperty("浏览量")
	private Integer view;
	@ApiModelProperty(value = "简介")
	@ExcelProperty("简介")
	private String introduce;


	@ApiModelProperty(value = "职位")
	@ExcelProperty("职位")
	private String position;
	@ApiModelProperty(value = "技能专长")
	@ExcelProperty("技能专长")
	private String skill;
	@ApiModelProperty(value = "个人网址")
	@ExcelProperty("个人网址")
	private String personalWeb;
	@ApiModelProperty(value = "市地址code")
	@ExcelProperty("市地址code")
	private String addressCityCode;

	@ApiModelProperty(value = "居委会编码")
	private String committeeCode;
	/**
	 * 街道（乡村）编码
	 */
	@ApiModelProperty(value="街道（乡村）编码")
	private String streetCode;

	/**
	 * 区县级编码
	 */
	@ApiModelProperty(value="区县级编码")
	private String areaCode;

	/**
	 * 市编码
	 */
	@ApiModelProperty(value="市编码")
	private String cityCode;

	@ApiModelProperty(value = "省")
	private String provinceName = "河南省";

	@ApiModelProperty(value = "市")
	private String cityName;

	@ApiModelProperty(value = "区县")
	private String areaName;

	@ApiModelProperty(value = "街道（乡村）")
	private String streetName;

	@ApiModelProperty(value = "居委会")
	private String committeeName;
	private Date updateTime;

	@TableField(exist = false)
	@ApiModelProperty(value = "token")
	private String token;

}
